<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var names=["王康","王威达","吴磊","张俊"];
			function doChoose(){
				if(names.length==0)
					return;
				let i=Math.trunc(Math.random()*names.length);
				document.querySelector("#choose").innerHTML=names.splice(i,1);;
				
			}
		</script>
	</head>
	<body>
		<div id="choose"></div>
		<button  onclick="doChoose()">挑选</button>
	</body>
</html>